package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.DictDepartmentDao;
import io.renren.entity.DictDepartmentEntity;
import io.renren.service.DictDepartmentService;



@Service("dictDepartmentService")
public class DictDepartmentServiceImpl implements DictDepartmentService {
	@Autowired
	private DictDepartmentDao dictDepartmentDao;
	
	@Override
	public DictDepartmentEntity queryObject(String id){
		return dictDepartmentDao.queryObject(id);
	}
	
	@Override
	public List<DictDepartmentEntity> queryList(Map<String, Object> map){
		return dictDepartmentDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return dictDepartmentDao.queryTotal(map);
	}
	
	@Override
	public void save(DictDepartmentEntity dictDepartment){
		dictDepartmentDao.save(dictDepartment);
	}
	
	@Override
	public void update(DictDepartmentEntity dictDepartment){
		dictDepartmentDao.update(dictDepartment);
	}
	
	@Override
	public void delete(String id){
		dictDepartmentDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		dictDepartmentDao.deleteBatch(ids);
	}

	@Override
	public DictDepartmentEntity queryObjectByDeptNo(String deptNo) {
		// TODO Auto-generated method stub
		return dictDepartmentDao.queryObjectByDeptNo(deptNo);
	}

	@Override
	public Integer searchNoCount(String stringCellValue) {
		// TODO Auto-generated method stub
		return dictDepartmentDao.searchNoCount(stringCellValue);
	}
	
}
